home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Voodoo LOD Bias 1.xpl < prev    next >
Text File  |  2003-11-19  |  3KB  |  61 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="Hardware\Video Cards\Voodoo 4/5"
  5. "NAME"="Level of Detail Bias"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Bias (Glide)"
  8. "TEXT 2"="Bias (Direct3D)"
  9. "DESCRIPTION 1"="Level Of Detail (LOD) bias modifies the calculation of texture level of detail parameter LOD. Often a texture is oversampled or filtered such that the texture is band limited at lower frequencies in one or more dimensions. The result is that texture-mapped primitives appear excessively blurry."
  10. "DESCRIPTION 2"="LOD bias provides biases in the LOD calculation to compensate for under or over sampled texture images. The sharpness of mipmapped textures can be altered here."
  11. "DESCRIPTION 3"="Entering a negative value in either field will make the image sharper, but it will affect overall performance. A positive value will make the image more blurred, but the perfomance will be better. The default value is 0, and the values can range from 8 to -8. -4 is a recommended value."
  12. "DESCRIPTION 4"="In Windows 2000, the driver currently only allows values between 2 and -2, in which case you should set the value to -2."
  13. "DESCRIPTION 5"="You can read the full in-depth LOD bias article (including pictures) by viewing: http://voodooextreme.com/reverend/Reviews/3dfx_5500/followup/3dfx5500_LOD_frames.html"
  14. "COMMENT 1"="Thanks to CptSiskoX [CptSiskoX@hotmail.com] for suggesting this feature!"
  15. "VERSION"="1.02"
  16. "AUTHOR"="Xteq Systems (Neil R. Turner)"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "CONTACTURL"="http://www.xteq.com/"
  19. "OSVERSION"="1011110"
  20.  
  21. Glide="HKLM\System\CurrentControlSet\Services\Class\Display\0000\Glide\FX_GLIDE_LOD_BIAS"
  22. D3D="HKLM\System\CurrentControlSet\Services\Class\Display\0000\D3D\SSTH3_LOD_BIAS"
  23.  
  24. SUB Plugin_Initialize
  25.  s=RegReadValue(Glide)
  26.  call SetUIElement(1,s)
  27.  
  28.  s=RegReadValue(D3D)
  29.  call SetUIElement(2,s)
  30. END SUB
  31.  
  32. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  ' Define limits - these vary depending on OS
  34.  ' We assume that Windows XP=Windows 2000, for now at least...
  35.  w=GetWinVer
  36.  if w=4 OR w=6 then
  37.   lim1="2"
  38.   lim2="-2"
  39.  else
  40.   lim1="8"
  41.   lim2="-8"
  42.  end if
  43.  
  44.  s=GetUIElement(1)
  45.  if s<lim1 AND s>lim2 then
  46.   call RegWriteValue(Glide,s,1)
  47.  else
  48.   Call MsgError("You can only enter values between " & lim1 & " and " & lim2 & "!")
  49.  end if
  50.  
  51.  s=GetUIElement(2)
  52.  if s<lim1 AND s>lim2 then
  53.   call RegWriteValue(D3D,s,1)
  54.  else
  55.   Call MsgError("You can only enter values between " & lim1 & " and " & lim2 & "!")
  56.  end if
  57. END SUB
  58.  
  59. SUB Plugin_Terminate
  60. END SUB
  61.